package com.example.demo.service;

import com.example.demo.entity.Author;
import com.example.demo.util.PageUtil;

public interface AuthorService {

  public boolean add(Author author);

  public boolean update(Author author);

  public boolean delete(int id);

  public Author[] get(PageUtil pageUtil);

  public Author[] findByName(String name, PageUtil pageUtil);

  public int findByNameCount(String name);

  public Author[] getAll();

}